import request from '/@/utils/request';

/**
 * 统计
 */
export function usesStatisticsApi() {
    return {
        personalStatistics: (data) => {
            return request({
                url: '/statistics/personalStatistics',
                method: 'POST',
                data,
            });
        },
        getSystemCaseSum: () => {
            return request({
                url: '/statistics/getSystemCaseSum',
                method: 'POST',
            });
        },
        getAllReportSum: () => {
            return request({
                url: '/statistics/getAllReportSum',
                method: 'POST',
            });
        },
        getCaseResultWeekSum: () => {
            return request({
                url: '/statistics/getWeekReportSum',
                method: 'POST',
            });
        },
        getUserActivityLevel: () => {
            return request({
                url: '/statistics/getUserActivityLevel',
                method: 'POST',
            });
        },
        getWeeklyExecutionData: () => {
            return request({
                url: '/statistics/getWeeklyExecution',
                method: 'POST',
            });
        },
    };
}
